#ifndef __BASICTYPE_H__
#define __BASICTYPE_H__

#include <limits.h>

#ifndef UINT64
#define UINT64  unsigned long long int
#endif

#ifndef INT64
#define INT64  long long int
#endif

#ifndef UINT32
#define UINT32  unsigned int
#endif

#ifndef INT32
#define INT32  signed int
#endif

#ifndef INT16
#define INT16  signed short
#endif

#ifndef UINT16
#define UINT16  unsigned short
#endif

#ifndef INT8
#define INT8  signed char
#endif

#ifndef UINT8
#define UINT8  unsigned char
#endif

#ifndef UChar
#define UChar  unsigned char
#endif

#ifndef BOOL32
#define BOOL32 unsigned int
#endif

#define _BIT(n) (1<<n)
#define UNUSE(x) ((void)x)

#define ARRAY_SIZE(array) sizeof(array)/sizeof(array[0])

#ifndef TRUE
#define TRUE 1
#endif

#ifndef FALSE
#define FALSE 0
#endif

#ifndef NULL
#define NULL (0)
#endif


#ifndef SZ_1KB
#define SZ_1KB 0x400
#endif

#ifndef SZ_4KB
#define SZ_4KB 0x1000
#endif

#ifndef SZ_16KB
#define SZ_16KB 0x4000
#endif

#ifndef SZ_64KB
#define SZ_64KB 0x10000
#endif

#ifndef SZ_1MB
#define SZ_1MB 0x100000
#endif

typedef void * DevHandle;

#endif
